package mason.dp.abstractfactory.computer;

import mason.dp.abstractfactory.factory.ComputerComponentFactory;

/**
 * Mac平台的台式计算机
 * 
 * @author MasonAir
 *
 */
public class MacComputer extends Computer {

	ComputerComponentFactory ccFactory;

	public MacComputer(String name, ComputerComponentFactory ccf) {
		this.name = name;
		this.ccFactory = ccf;
	}

	@Override
	public void prepare() {
		cpu = ccFactory.createCpu();
		ram = ccFactory.createRam();
	}

}
